/*
Author: Surpass-HC
Source: https://gitee.com/hxchuan000/clpc-1
Mail: surpass-hc@qq.com
*/
#pragma once
#include <clogPrint.h>

struct clogOutFileInf
{
    long logOneSize;     // one log file max size
    int logFiles;        // log file numbers
    int logFlush;        // log file flush now.
    FILE *logFilePtr;        // log open file handler.
    const char *logBaseName; // log file base name.
};
int clogFileCfgFsize(struct clogOutFileInf *fileInf, int cfgval);
int clogFileCfgFnum(struct clogOutFileInf *fileInf, int cfgval);
int clogFileCfgFlush(struct clogOutFileInf *fileInf, int cfgval);
int clogFileCfgFname(struct clogOutFileInf *fileInf, const char *cfgval);
int clogOutFileInit(struct clogOutFileInf *fileInf);
int clogOutFileQuit(struct clogOutFileInf *fileInf);
void clogPrtFileFun(void *waydata, const char *logstr, int strlen);
